package com.yiyuan.app.entity.param;

import com.guaike.core.entity.annotation.IsDictValue;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("排行榜请求入参")
public class RankDTO implements Serializable {

    private static final long serialVersionUID = 1983879536575766072L;

    @ApiModelProperty(value = "上周本周切换（0：本周/今日，1：上周/昨日）", required = true)
    @NotNull(message = "上周本周切换不能为空")
    @IsDictValue(code = BusinessDictCodeConstant.M_RANK_DATE, message = "日期类型不正确")
    private Integer weekType;

    @ApiModelProperty(value = "低高倍机切换（0：低倍机，1：高倍机）潮玩达人必传")
    @IsDictValue(code = BusinessDictCodeConstant.ROOM_MULTIPLE_TYPE, message = "倍数类型不正确", ignoreNull = true)
    private Integer timesType;
}
